package com.lagou.mall.esflow.server.constant;

public class ESFlowConstant {


    /**
     * binlog type
     */
    public static class BinlogType {

        // 表操作类型
        public static final String INSERT_TYPE = "insert";
        public static final String DELETE_TYPE = "delete";
        public static final String UPDATE_TYPE = "update";
    }


    public static final String ITEM_DOCS = "item_docs";


    /**
     * 线程配置
     */
    public static class ThreadConfiguration {

        public static final int THREAD_MAX_NUM = 50;
        // trace ThreadLocal
        public static final ThreadLocal TRACE_THREAD_LOCAL = new ThreadLocal();
        // time ThreadLocal
        public static final ThreadLocal TIME_THREAD_LOCAL = new ThreadLocal();

        public static final int CORE_NUM = Runtime.getRuntime().availableProcessors() + 1;
    }
}
